import request from './req'

// 根据公司名称查询允许撤销的投保记录
export const getqueryRevokeensurelistapi = async (data: any) => {
    return await request.get('/period-insur/operate-record/query-revoke-ensure-list', { params: data })
}

// 获取公司保险方案详细信息
export const getInsurComCompanyPlansapi = async (data: any) => {
    return await request.get('/insur/InsurComCompanyPlans/' + data.id)
}

// PC撤销投保
export const revokeensureapi = async (data: any) => {
    return await request.get('/period-insur/operate-record/revoke-ensure', { params: data })
}

// 查询长期保险保险操作记录投保人员列表
export const getdetailrecordIdapi = async (data: any, config = {}) => {
    return await request.get('/period-insur/operate-record/detail-recordId', { params: data, ...config })
}

// 查询公司方案下投保人员数据
export const getqueryinsurlistapi = async (data: any) => {
    return await request.get('/rest/period-insur/staff-record/query-insur-list', { params: data })
}

// 查询一键续保记录
export const getperiodinsuronekeylistapi = async (data: any) => {
    return await request.get('/period-insur/onekey/list', { params: data })
}

// 一键续保
export const periodinsuronekeyensureapi = async (data: any) => {
    return await request.post('/period-insur/onekey/ensure', data)
}

// 根据公司id查询公司下需要续保人员
export const getperiodinsuronekeydetailapi = async (data: any) => {
    return await request.get('/period-insur/onekey/detail', { params: data })
}

// 员工领薪失败原因查询
export const getqueryfailreasonapi = async (data: any) => {
    return await request.get('/pay/pay-payment-record/query-fail-reason', { params: data })
}

// 待处理事件数
export const getwaithandlejobapi = async () => {
    return await request.get('/statistics/wait-handle-job',)
}

// 查询已撤销列表
export const getqueryalreadyrevokeensureListapi = async (data: any) => {
    return await request.get('/period-insur/operate-record/query-already-revoke-ensureList', { params: data })
}
